
public class ClassicSingleton {
	private static ClassicSingleton instance = null;
	private ClassicSingleton(){};
	public static ClassicSingleton getInstance(){
		if(instance == null){
			instance = new ClassicSingleton();
		}
		return instance;
	}
	



public static void main(String[] args){
	ClassicSingleton sample = ClassicSingleton.getInstance();
	ClassicSingleton sample1 = ClassicSingleton.getInstance();
	ClassicSingleton sample2 = new ClassicSingleton();
	
	if(sample == sample1){
		System.out.print("Yes");
	}
	
}

}